package com.donger.business.cms.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.donger.business.cms.entity.CmsPost;

/**
 * cms文章(CmsPost)表服务接口
 *
 * @author somliy
 * @since 2020-05-07 19:06:17
 */
public interface CmsPostService extends IService<CmsPost> {

    /**
     * 分页查询
     * @param page
     * @param cmsPost
     * @return
     */
    IPage postPage(Page<CmsPost> page, CmsPost cmsPost);

    /**
     * 发布文章
     * @param cmsPost
     * @return
     */
    CmsPost saveByPost(CmsPost cmsPost);

    /**
     * 修改文章
     * @param cmsPost
     * @return
     */
    void updateByPost(CmsPost cmsPost);
}